package model

type GroundLocation struct {
	MapName      string      `json:"map_name" bson:"map_name"`            //地图唯一标志(厂区-楼层@地图名称)
	LocationData []*Location `json:"location_data"  bson:"location_data"` //库位数据
}

type OneGroundLocation struct {
	MapName  string   `json:"map_name" bson:"map_name"`  //地图唯一标志(厂区-楼层@地图名称)
	Location Location `json:"location"  bson:"location"` //库位数据
}

//小车类型
type Location struct {
	Group         string    `json:"group" bson:"group" binding:"required"`                   //组名
	Name          string    `json:"name" bson:"name"`                                        //别名
	DepthPointId  []string  `json:"depth_point_id" bson:"depth_point_id" binding:"required"` //地堆库深度库位，由深->浅填入浅库位点id
	FrontPointId  string    `json:"front_point_id" bson:"front_point_id" binding:"required"` //前瞻点
	CheckPointId  string    `json:"check_point_id" bson:"check_point_id" binding:"required"` //检测点
	ContainDotIds []string  `json:"contain_dot_ids" bson:"contain_dot_ids" `                 //包含点
	PolygonDraw   PoseArray `json:"polygon_draw" bson:"polygon_draw"`                        //绘制地堆库多边形样式
	// Paths        TrafficPaths `json:"-"`
}
type RecordLocation struct {
	GroupId string
	MapName string
	GFlag   GenerateFlag
}

func (GroundLocation) TableName() string {
	return "t_data_ground_location"
}
